//
//  ShowLoadingView.m
//  MyFunctionDemo
//
//  Created by Ting Han on 2017/9/22.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "ShowLoadingView.h"

@interface ShowLoadingView()

@property (nonatomic,assign) NSInteger count;

@end

@implementation ShowLoadingView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.count = 0;
    }
    return self;
}
- (void)push{
    self.count +=1;
}
- (void)pop{
    self.count -=1;
}
@synthesize count = _count;
- (void)setCount:(NSInteger)count{
    _count = count;
    if (count>=1) {
        self.userInteractionEnabled = YES;
    }else{
        self.userInteractionEnabled = NO;
    }
}

@end
